<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_scroll = $show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>content_addtop_new.js"></script>
<h3 style="padding-left: 20px;padding-top: 10px">
<a href="javascript:history.back(-1);" style="font-size:14px;color: #0000FF"><em>返回上一级</em></a>
</h3>
	<div class="pad-10">
		<div class="col-tab">
			<div id="div_info_1" class="contentList pad-10">
				<table width="100%" class="table_form ">
					<tbody>
						<tr>
							<th width="200"><?php echo L('username')?>：</th>
							<td><?php echo $dynamic_info['user_name']?></td>
						</tr>
						<tr>
							<th><?php echo L('type')?>：</th>
							<td><?php if($dynamic_info['type']==1){echo '模特动态';}elseif ($dynamic_info['type']==2){echo '直播动态';}?></td>
						</tr>
						<tr>
							<th><?php echo L('file_count')?>：</th>
							<td><?php echo $dynamic_info['file_count']?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('content')?>：</th>
							<?php if(!empty($dynamic_info['content'])){?>
							<td><?php echo $dynamic_info['content']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<tr>
							<th width="200"><?php echo L('phone_model')?>：</th>
							<?php if(!empty($dynamic_info['phone_model'])){?>
							<td><?php echo $dynamic_info['phone_model']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<tr>
							<th width="200"><?php echo L('ip')?>：</th>
							<?php if(!empty($dynamic_info['ip'])){?>
							<td><?php echo $dynamic_info['ip']?></td>
							<?php }else{?>
							<td><font color="red">(暂未设置)</font></td>
							<?php }?>
						</tr>
						<?php 
							if(!empty($file_info)){
								foreach ($file_info as $k=>$v){
									$k++;
						?>
						<tr>
							<th width="200"><?php echo L('file').$k?>：</th>
							<?php if($v['type']==1){?>
							<td><a href="javascript:image_priview('<?php echo $v['file_url']?>');" title="点击查看大图"><img height="150px" alt="" src="<?php echo $v['thumbnail_url']?>" onerror="javascript:this.src='<?php echo IMG_PATH?>/nopic.gif'"></a></td>
							<?php }elseif($v['type']==2){?>
							<?php if(!empty($v['file_url'])){?>
							<td><a href="<?php echo $v['file_url']?>" target="_blank" title="点击查看视频"><img height="150px" src="<?php echo $v['thumbnail_url']?>"></a></td>
							<?php }else{?>
							<td><img height="150px" src="<?php echo $v['thumbnail_url']?>"></td>
							<?php }?>
							<?php }?>
						</tr>
						<?php }}else{?>
						<?php }?>
					</tbody>
				</table>
			</div>
		</div>
</div>
</body>
</html>